<?php
error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING);

$yii=dirname(__FILE__).'/../../framework/framework/yii.php';
$config=dirname(__FILE__).'/protected/config/main.php';

if(!$_GET['r']){
    $_GET['r'] = 'site/index';
}

// remove the following line when in production mode
defined('YII_DEBUG') or define('YII_DEBUG', FALSE);

require_once($yii);

Yii::createWebApplication($config)->run();